import { connect } from 'react-redux'
import * as Action  from '../modules/terms'

import Terms from '../components/Terms'

const mapDispatchToProps={
	getAllTerms:Action.getAllTerms,
	addOneTerm:Action.addOneTerm,
	deleteOneTermById:Action.deleteOneTermById,
	updateOneTermById:Action.updateOneTermById,

}

const mapStateToProps=(state)=>{
	
  return state
}

export default connect(mapStateToProps,mapDispatchToProps)(Terms)